package com.dxk.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class helloShrio {

    @RequestMapping({"/","/index"})
    public String toIndex(Model model){
        model.addAttribute("msg","hello");

        return "index";
    }


    @RequestMapping("/add")
    public  String add(){

        return "view/add";
    }
    @RequestMapping("/update")
    public  String update(){

        return "view/update";
    }
}
